home *** CD-ROM | disk | FTP | other *** search
- %if MenuItemName = Cut%
- /*----------*/
- void DoCut (void);
- void DoCut ()
- {
- if (cur->text != nil) {
- TECut (cur->text);
- scrapDirty = true;
- }
- } /*DoCut*/
-
- %elsif MenuItemName = Copy%
- /*----------*/
- void DoCopy (void);
- void DoCopy ()
- {
- if (cur->text != nil) {
- TECopy (cur->text);
- scrapDirty = true;
- }
- } /*DoCopy*/
-
- %elsif MenuItemName = Paste%
- /*----------*/
- void DoPaste (void);
- void DoPaste ()
- {
- if (cur->text != nil) {
- TEPaste (cur->text);
- }
- } /*DoPaste*/
-
- %elsif MenuItemName = Clear%
- /*----------*/
- void DoClear (void);
- void DoClear ()
- {
- if (cur->text != nil) {
- TEDelete (cur->text);
- }
- } /*DoClear*/
-
- %elsif MenuItemName = SelectAll%
- /*----------*/
- void DoSelectAll (void);
- void DoSelectAll ()
- {
- if (cur->text != nil) {
- TESetSelect (0, 32767, cur->text);
- }
- } /*DoSelectAll*/
-
- %else%
- %DoMenuItem%
- %end if%
-